package com.autumn.config.api.vo;

import com.autumn.validation.constraints.NotNullOrBlank;

/**
 * 服务标识输入
 * 
 * @author 老码农
 *
 *         2018-01-07 13:11:18
 */
public class ServiceIdentityValue extends ServiceBaseValue {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2119295402660725072L;

	@NotNullOrBlank(message = "标识 Id 不能为 null 或空白值。")
	private String identity;
	private Integer connectionType;

	/**
	 * 获取标识id
	 * 
	 * @return
	 *
	 */
	public String getIdentity() {
		return identity;
	}

	/**
	 * 设置标识id
	 * 
	 * @param identity
	 *            标识id
	 *
	 */
	public void setIdentity(String identity) {
		this.identity = identity;
	}

	/**
	 * 获取连接类型
	 * 
	 * @return
	 *
	 */
	public Integer getConnectionType() {
		return connectionType;
	}

	/**
	 * 设置连接类型
	 * 
	 * @param connectionType
	 *
	 */
	public void setConnectionType(Integer connectionType) {
		this.connectionType = connectionType;
	}

}
